﻿using Volo.Abp.DependencyInjection;
using YAPACS.Workflows;

namespace YAPACS.RisServer.Workflows.Report;

public class GetReportView : WorkflowBase, IGetReportView, ITransientDependency
{
    protected override async Task<WorkflowOutput> InvokeCoreAsync(WorkflowInput input)
    {
        string content = await Extensions.GetResourceStringAsync("Resources.Report.report-view.json");
        return new WorkflowOutput
        {
            Success = true,
            View = content
        };
    }
}
